<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
        <!--1 模板内容 -->
        <div id="demo">
            <div>{{message}}</div>
            <div v-text="message1"></div>
            <div v-html="message2"></div>
            <!-- <div v-once="message3"></div>
            <div v-pre="message4"></div> -->
        </div>

        <!--2 js -->
        <script>
            var demo= new Vue({
                el :"#demo",
                data:{
                    message:'文本渲染',
                    message1:"this is <i>v-text</i>",
                    message2:"this is <i>v-html</i>",
                    // message3:"this is <i>v-once</i>",
                    // message4:"文本渲染 pre",

                }
            })
        </script>
</body>
</html>